package com.huadi.ssm.service;

import com.huadi.ssm.mapper.ExpertMapper;
import com.huadi.ssm.po.Expert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ExpertServiceImpl implements ExpertService {

    @Autowired
    private ExpertMapper expertMapper;


    @Override
    public Expert findByName(String name) {
        return expertMapper.findByName(name);
    }

    @Override
    public int add(Expert expert) {
        return expertMapper.add(expert);
    }

    @Override
    public int edit(Expert expert) {
        return expertMapper.edit(expert);
    }

    @Override
    public int delete(String ids) {
        return expertMapper.delete(ids);
    }

    @Override
    public List<Expert> findList(Map<String, Object> queryMap) {
        return expertMapper.findList(queryMap);
    }

    @Override
    public List<Expert> findAll() {
        return expertMapper.findAll();
    }

    @Override
    public int getTotal(Map<String, Object> queryMap) {
        return expertMapper.getTotal(queryMap);
    }
}
